import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 图片懒加载
import VueLazyload from 'vue-lazyload'

// 引入注册所有的 vant 的组件
import './utils/vants'

// 引入 mock
import './mock';

// 自定义配置 懒加载图片
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: 'https://img0.baidu.com/it/u=1364664156,1165057140&fm=26&fmt=auto&gp=0.jpg',
  loading: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnews.eeeqi.cn%2Fd%2Ffile%2Fcontent%2F2019%2F07%2F5d1979ee5867f.gif&refer=http%3A%2F%2Fnews.eeeqi.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627028171&t=b8554ccfc1baa4cfc038a211685c1b70',
  attempt: 1
})


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
